package net.message {

	import flash.utils.IDataInput;
	import net.MessageType;
	import net.handler.GC_Shop_BuyEquipHandler;
	import util.Long;
	
	/**
	 * 文件名：GC_Shop_BuyEquipMessage.as
	 * <p>
	 * 功能：买装备
	 * <p>
	 * 版本：1.0.0
	 * <p>
	 * 作者：Builderd by AppTools
	 * <p>
	 */
	public class GC_Shop_BuyEquipMessage extends BaseMessage {
	
	//写入操作结果反馈：1：成功，0：无此装备或购买限制，-1：钱不够
		public var feedback:uint;
	//写入扣银币
		public var silver:int;
	//写入数据库中装备key
		public var entityid:Long;
	//写入装备id
		public var id:uint;


		public function GC_Shop_BuyEquipMessage() {
			super();
			type = MessageType.GC_Shop_BuyEquip;
			handler = new GC_Shop_BuyEquipHandler();
		}
	
		override public function readMessage(data:IDataInput):void {
			//写入操作结果反馈：1：成功，0：无此装备或购买限制，-1：钱不够
			feedback = data.readShort();
			//写入扣银币
			silver = data.readInt();
			//写入数据库中装备key
			entityid = data.readLong();
			//写入装备id
			id = data.readShort();
		}
	}
}
